powerpc/lib/sstep: Fix building for powerpcspe
authorJames Clarke <jrtc27@jrtc27.com>
Thu, 7 Dec 2017 20:32:44 +0000 (20:32 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 7 Oct 2018 20:57:06 +0000 (21:57 +0100)
commit4a74ef85f21a3085fda6ed5d2dc7e5115e2f47dd
treeacb2ae2b50856d78c5f5fd9eb3cb12595143b61c
parent30529cdfea012bcf9cc028b545f08e56419cbe0d
powerpc/lib/sstep: Fix building for powerpcspe

On powerpcspe, ptesync is not a recognised instruction and so fails to
assemble. We don't expect to have to emulate an lwsync or a ptesync on a
32-bit kernel, so just ifdef them out, and catch any unexpected barrier
types.

Fixes: 3cdfcbfd32b9 ("powerpc: Change analyse_instr so it doesn't modify *regs")
Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Gbp-Pq: Topic bugfix/powerpc
Gbp-Pq: Name powerpc-lib-sstep-fix-building-for-powerpcspe.patch
arch/powerpc/lib/sstep.c